import icons from "@/json/icons.json";
import iconsMdi from "@/json/iconsMdi.json";
import { addCollection } from "@iconify/vue";

export function preloadIcons() {
  try {
    addCollection(icons);
    addCollection(iconsMdi);
  } catch (error) {
    console.error("icons.json preload failed:", error);
  }
}
